﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using WpfApp7.ViewModels;

namespace WpfApp7.Converter
{
    public class MultiCommandParamConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            CommandParamInput input = new CommandParamInput()
            {
                Id = System.Convert.ToInt32(values[0]),
                Name = values[1].ToString(),
            };
            return input;
        }

        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
